package com.link.base.base.encode.dao.mybatis.mapper;

import com.link.base.base.encode.model.Encode;
/**
 * Copyright  hande Company. All Rights Reserved.
 *
 * @author  unknwon
 * @date:   2018/11/12 9:44
 * @version 1.0
 */

public interface EncodeMapper {
    /**
     * 插入编码
     *
     * @param encode
     * @return
     * @throws Exception
     */
    public void insert(Encode encode) throws Exception;

    /**
     * 用密钥查询字符串
     *
     * @param code
     * @return
     * @throws Exception
     */
    public Encode queryStringByCode(String code) throws Exception;

    /**
     * 删除编码
     *
     * @param code
     * @return
     * @throws Exception
     */
    public void delete(String code) throws Exception;
}
